import request from '@/utils/request'

//获取线上课程列表
export function getonlinecourses(token,data){
    return request({
        url: 'thk/online_courses/get_list',
        method: 'post',
        params: { token },
        data
    })
}
//数据更新
export function edit(token,data){
    return request({
        url: 'thk/online_courses/edit',
        method:'post',
        params: { token },
        data
    })
}
//新增
export function add(token,data){
    return request({
        url: 'thk/online_courses/add',
        method:'post',
        params: { token },
        data
    })
}
//下架
export function del(token,data){
    return request({
        url: 'thk/online_courses/delete',
        method:'post',
        params: { token },
        data
    })
}
//订单列表
export function getorder(token,data){
    return request({
        url: 'thk/online_courses/select_order',
        method:'post',
        params: { token },
        data
    })
}
//导出活动业绩
export function get_excel(data){
    return request({
        url: 'thk/online_courses/select_order',
        method:'post',
        params: {
            token:data.token,
            activity_id:data.activity_id
        }
    })
}
// /order/order/get_order_custom_info
export function get_order_custom_info(token,data){
    return request({
        url: '/order/order/get_order_custom_info',
        method:'post',
        params: {token},
        data
    })
}
//
export function get_select(token,data){
    return request({
        url:'thk/online_courses/get_select',
        method:'post',
        params:{token},
        data
    })
}
//确认有效收益
export function confirmed(token,data){
    return request({
        url:'thk/online_courses/confirmed',
        method:'post',
        params:{token},
        data
    })
}
//确认无效收益
export function invalid(token,data){
    return request({
        url:'thk/online_courses/invalid',
        method:'post',
        params:{token},
        data
    })
}
//excel数据
export function execl_data(token,data){
    return request({
        url:'thk/online_courses/excel_data',
        method:'post',
        params:{token},
        data
    })
}
//获取前台线上课程总收益
export function sys_dict(token,data){
    return request({
        url:'thk/sys_dict/get_list',
        method:'post',
        params:{token},
        data
    })
}
// 添加前台线上课程总收益
export function add_sys_dict(token,data){
    return request({
        url:'thk/sys_dict/add',
        method:'post',
        params:{token},
        data
    })
}